package lbsproject.processaudit.misc;

import java.io.File;
import java.io.Serializable;
import java.util.Date;

import lbsproject.processaudit.model.enumeration.ExecuteResult;

public class SerializableTaskRecord implements Serializable {

	private String description;
	private ExecuteResult executeResult;
	private File photo;
	private Date submitTime;
	private SerializableWorker submitWorker;
	private String id;
	private String photoURL;

	public SerializableTaskRecord( String description, File photo,
			Date submitTime, SerializableWorker submitWorker, String id ) {
		super();
		this.setId( id );
		this.description = description;
		this.photo = photo;
		this.submitTime = submitTime;
		this.submitWorker = submitWorker;
	}

	public SerializableTaskRecord() {
		
	}

	/**
	 * 
	 */
	private static final long	serialVersionUID	= 9146724196428426807L;


	public String getDescription() {
		return description;
	}

	public void setDescription( String description ) {
		this.description = description;
	}

	public void setExecuteResult( ExecuteResult status ) {
		this.executeResult = status;
	}

	public ExecuteResult getExecuteResult() {
		return this.executeResult;
	}

	public File getPhoto() {
		return photo;
	}

	public void setPhoto( File photo ) {
		this.photo = photo;
	}

	public Date getSubmitTime() {
		return submitTime;
	}

	public void setSubmitTime( Date submitTime ) {
		this.submitTime = submitTime;
	}

	public SerializableWorker getSubmitWorker() {
		return submitWorker;
	}

	public void setSubmitWorker( SerializableWorker submitWorker ) {
		this.submitWorker = submitWorker;
	}

	public String getId() {
		return id;
	}

	public void setId( String id ) {
		this.id = id;
	}

	public String getPhotoURL() {
		return photoURL;
	}

	public void setPhotoURL( String photoURL ) {
		this.photoURL = photoURL;
	}

}
